﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SPlayerGuildInfo extends IMessageBase
    {
        public var playerId:int;
        public var guildId:int;
        public var campLevel:int;
        public var guildName:String;
        public var level:int;
        public var position:int;
        public var playerNum:int;
        public var contribution:int;
        public var contributionDay:int;
        public var contributionWeek:int;
        public var totalContribution:int;
        public var activity:int;
        public var resource:int;
        public var skillTimes:int;
        public var getReward:int;
        public var lastEnterDt:Date;
        public var dayAward:Boolean;
        public const _type:int = 16100;
        public static var _regist:SPlayerGuildInfo = new SPlayerGuildInfo(true);

        public function SPlayerGuildInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SPlayerGuildInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.playerId);
            param1.writeInt(this.guildId);
            param1.writeInt(this.campLevel);
            param1.writeString(this.guildName);
            param1.writeInt(this.level);
            param1.writeInt(this.position);
            param1.writeInt(this.playerNum);
            param1.writeInt(this.contribution);
            param1.writeInt(this.contributionDay);
            param1.writeInt(this.contributionWeek);
            param1.writeInt(this.totalContribution);
            param1.writeInt(this.activity);
            param1.writeInt(this.resource);
            param1.writeInt(this.skillTimes);
            param1.writeInt(this.getReward);
            param1.writeDate(this.lastEnterDt);
            param1.writeBool(this.dayAward);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.playerId = param1.readInt();
            this.guildId = param1.readInt();
            this.campLevel = param1.readInt();
            this.guildName = param1.readString();
            this.level = param1.readInt();
            this.position = param1.readInt();
            this.playerNum = param1.readInt();
            this.contribution = param1.readInt();
            this.contributionDay = param1.readInt();
            this.contributionWeek = param1.readInt();
            this.totalContribution = param1.readInt();
            this.activity = param1.readInt();
            this.resource = param1.readInt();
            this.skillTimes = param1.readInt();
            this.getReward = param1.readInt();
            this.lastEnterDt = param1.readDate();
            this.dayAward = param1.readBool();
            return;
        }// end function

    }
}
